﻿using System;

using CoreLib.NUnit.Constraints;

using NUnit.Framework.Constraints;

namespace CoreLib.NUnit
{
    public static class Throws
    {
        public static Constraint Exception<TException>() where TException : Exception
        {
            return new ThrowsExceptionConstraint<TException>();
        }

        public static Constraint NoExceptions()
        {
            return new ActionExecuteConstraint();
        }
    }
}
